import java.util.concurrent.TimeUnit;

public class runWorker {
    public static void main(String[] args) {
        try{
            Worker worker = new Worker();
            UrgentTask urgentTask = new UrgentTask();
            worker.start();
            TimeUnit.SECONDS.sleep(1);
            worker.setJoiner(urgentTask);
        }catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
